package com.jnxx.task.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jnxx.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 实体类：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cycle extends BaseDomain{

    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;
    private Date creatTime = new Date();
    private Integer staffId;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    @Override
    public String toString() {
        return "Cycle{" +
        ", name=" + name +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", creatTime=" + creatTime +
        ", staffId=" + staffId +
        "}";
    }
}
